<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


class Core_Form_User_ChangePassword extends RedCross_Form
{
    public function init()
    {
        $this->addElement('password', 'password', array(
           'validators'     => array('Password'),
            'required'      => true,
            'label'         => 'Nytt passord'
        ));

        $this->addElement('password', 'confirmPassword', array(
           'validators'     => array(
               array('NotEmpty', true),
               array('PasswordVerification', true),
            ),
            'required'      => true,
            'ignore'        => true,
            'label'         => 'Bekreft passord'
        ));

        $this->addElement('submit', 'submit', array(
            'required' => true,
            'ignore'   => true,
            'label'    => 'Endre passord',
        ));
    }
}

